package com.zhigh.test.testuinit.sty.pojo;

import lombok.*;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Result<V> {
    public static final String SUCCESS_CODE = "0000";

    public String code;
    public String message;
    public V data;


    public static <D> Result<D> success(D data) {
        return new Result<>(SUCCESS_CODE, "", data);
    }
}
